﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;


namespace PenguinLevelEditor
{
    public class Tile
    {

        public Tile(List<Texture2D> textureList)
        {
            m_textureList = textureList;

        }

        public void Update(GameTime gameTime)
        {


        }

        public void Draw(GameTime gameTime, SpriteBatch sprite,float x, float y)
        {                           
            sprite.Draw(m_textureList[(int)m_tileType], new Vector2(x, y), Color.White);
            
        }


        public enum TileTypes
        {
            Ice,
            Rock,
            Sand,
            SlipperyIce,
            Hole,
            ThinIce
        }

        public TileTypes m_tileType;

        public List<Texture2D> m_textureList;
        public Vector2 m_location;
        
    }
}
